package com.example.xpvideo.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 商户表(Merchants)实体类
 *
 * @author 杨丽辉
 * @since 2021-08-03 15:36:24
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Merchants implements Serializable {
    private static final long serialVersionUID = -23591383150700939L;
        /**
    *主键
    * 商户id
    * isnull 1
    */
        private Integer id;

    /**
    * 商户账号
    * isnull 0
    */            private String account;
    /**
    * 用户id
    * isnull 0
    */            private Integer userId;
    /**
    * 商户金额
    * isnull 0
    */            private BigDecimal balance;
    /**
    * 商户金额
    * isnull 0
    */            private BigDecimal integral;
    /**
    * 优惠券数量
    * isnull 0
    */            private Integer couponCount;
    /**
    * 连续签到天数
    * isnull 0
    */            private Integer countinuousSign;
    /**
    * 总共签到天数
    * isnull 0
    */            private Integer totalCountinuousSign;
    /**
    * 注册时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime createTime;
    /**
    * 入驻时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime settledTime;
    /**
    * 信息最后更新时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime updateTime;
    /**
    * 商户类型：1为供应商城商户；2为本地生活商户;3为管理员店铺
    * isnull 0
    */            private Integer merchantsType;
    /**
    * 运营类型：1：个人，2企业
    * isnull 0
    */            private Integer operationType;
    /**
    * 店铺所在省份
    * isnull 0
    */            private String merchantsProvince;
    /**
    * 店铺所在城市
    * isnull 0
    */            private String merchantsCity;
    /**
    * 店铺所在县区
    * isnull 0
    */            private String merchantsStreet;
    /**
    * 店铺详细地址
    * isnull 0
    */            private String merchantsDetail;
    /**
    * 关注度
    * isnull 0
    */            private Integer attentionCount;
    /**
    * 最后登录IP
    * isnull 0
    */            private String finalLoginIp;
    /**
    * 最后登录时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime lastLoginTime;
    /**
    * 商户状态；0正常；1审核中；2审核拒绝
    * isnull 0
    */            private Integer merchantsStage;
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
        
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
        
    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }
        
    public BigDecimal getIntegral() {
        return integral;
    }

    public void setIntegral(BigDecimal integral) {
        this.integral = integral;
    }
        
    public Integer getCouponCount() {
        return couponCount;
    }

    public void setCouponCount(Integer couponCount) {
        this.couponCount = couponCount;
    }
        
    public Integer getCountinuousSign() {
        return countinuousSign;
    }

    public void setCountinuousSign(Integer countinuousSign) {
        this.countinuousSign = countinuousSign;
    }
        
    public Integer getTotalCountinuousSign() {
        return totalCountinuousSign;
    }

    public void setTotalCountinuousSign(Integer totalCountinuousSign) {
        this.totalCountinuousSign = totalCountinuousSign;
    }
        
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
        
    public LocalDateTime getSettledTime() {
        return settledTime;
    }

    public void setSettledTime(LocalDateTime settledTime) {
        this.settledTime = settledTime;
    }
        
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
        
    public Integer getMerchantsType() {
        return merchantsType;
    }

    public void setMerchantsType(Integer merchantsType) {
        this.merchantsType = merchantsType;
    }
        
    public Integer getOperationType() {
        return operationType;
    }

    public void setOperationType(Integer operationType) {
        this.operationType = operationType;
    }
        
    public String getMerchantsProvince() {
        return merchantsProvince;
    }

    public void setMerchantsProvince(String merchantsProvince) {
        this.merchantsProvince = merchantsProvince;
    }
        
    public String getMerchantsCity() {
        return merchantsCity;
    }

    public void setMerchantsCity(String merchantsCity) {
        this.merchantsCity = merchantsCity;
    }
        
    public String getMerchantsStreet() {
        return merchantsStreet;
    }

    public void setMerchantsStreet(String merchantsStreet) {
        this.merchantsStreet = merchantsStreet;
    }
        
    public String getMerchantsDetail() {
        return merchantsDetail;
    }

    public void setMerchantsDetail(String merchantsDetail) {
        this.merchantsDetail = merchantsDetail;
    }
        
    public Integer getAttentionCount() {
        return attentionCount;
    }

    public void setAttentionCount(Integer attentionCount) {
        this.attentionCount = attentionCount;
    }
        
    public String getFinalLoginIp() {
        return finalLoginIp;
    }

    public void setFinalLoginIp(String finalLoginIp) {
        this.finalLoginIp = finalLoginIp;
    }
        
    public LocalDateTime getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(LocalDateTime lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
        
    public Integer getMerchantsStage() {
        return merchantsStage;
    }

    public void setMerchantsStage(Integer merchantsStage) {
        this.merchantsStage = merchantsStage;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"account\":" + account +
                            " ,\"userId\":" + userId +
                            " ,\"balance\":" + balance +
                            " ,\"integral\":" + integral +
                            " ,\"couponCount\":" + couponCount +
                            " ,\"countinuousSign\":" + countinuousSign +
                            " ,\"totalCountinuousSign\":" + totalCountinuousSign +
                            " ,\"createTime\":" + createTime +
                            " ,\"settledTime\":" + settledTime +
                            " ,\"updateTime\":" + updateTime +
                            " ,\"merchantsType\":" + merchantsType +
                            " ,\"operationType\":" + operationType +
                            " ,\"merchantsProvince\":" + merchantsProvince +
                            " ,\"merchantsCity\":" + merchantsCity +
                            " ,\"merchantsStreet\":" + merchantsStreet +
                            " ,\"merchantsDetail\":" + merchantsDetail +
                            " ,\"attentionCount\":" + attentionCount +
                            " ,\"finalLoginIp\":" + finalLoginIp +
                            " ,\"lastLoginTime\":" + lastLoginTime +
                            " ,\"merchantsStage\":" + merchantsStage +
                  '}';
    }


}
